package com.handpay.zztong.hp.swiper.model;

import android.os.Parcel;
import android.os.Parcelable;

public  class SwiperDeviceSelectInfo implements Parcelable {
    public static final int DEVICE_TYPE_BLUETOOTH = 1;
    public static final int DEVICE_TYPE_VOICE = 2;
    public int selectType;
    public int selectIndex;

    @Override
    public String toString() {
        return "selectType:"+selectType+" selectIndex:"+selectIndex;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.selectType);
        dest.writeInt(this.selectIndex);
    }

    public SwiperDeviceSelectInfo() {
    }

    protected SwiperDeviceSelectInfo(Parcel in) {
        this.selectType = in.readInt();
        this.selectIndex = in.readInt();
    }

    public static final Parcelable.Creator<SwiperDeviceSelectInfo> CREATOR = new Parcelable.Creator<SwiperDeviceSelectInfo>() {
        @Override
        public SwiperDeviceSelectInfo createFromParcel(Parcel source) {
            return new SwiperDeviceSelectInfo(source);
        }

        @Override
        public SwiperDeviceSelectInfo[] newArray(int size) {
            return new SwiperDeviceSelectInfo[size];
        }
    };
}